import React from 'react'
import ReactDOM from 'react-dom'
import './index.scss'
import App from './pages/App'
import { BrowserRouter } from 'react-router-dom'

const render = (App: any) => {
  ReactDOM.render(
    <React.StrictMode>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </React.StrictMode>,
    document.getElementById('root')
  )
}
render(App)

if (module.hot) {
  module.hot.accept()
}
